package com.lzctzk.serviceaddress.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Title:
 * Description:
 * Company:
 *
 * @user GuiYue
 * @time 11:58
 * @project_name service-address
 * @package_name com.lzctzk.serviceaddress.entity
 **/

@Entity
@Table(name = "BUILDING")
public class Building
{
    @Id
    private String code;
    private String name;
    private String addr;
    private String stru;
    private Integer upFloor;
    private Integer downFloor;
    private float height;
    private float ldArea;
    private float floorArea;
    private String propertyUnit;
    private String propertyNo;
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date compDate;
    private String usage;
    private String status;
    private Integer upSeats;
    private Integer downSeats;
    private String longitude;
    private String latitude;


    public float getLdArea()
    {
        return ldArea;
    }

    public void setLdArea(float ldArea)
    {
        this.ldArea = ldArea;
    }

    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getAddr()
    {
        return addr;
    }

    public void setAddr(String addr)
    {
        this.addr = addr;
    }

    public String getStru()
    {
        return stru;
    }

    public void setStru(String stru)
    {
        this.stru = stru;
    }

    public Integer getUpFloor()
    {
        return upFloor;
    }

    public void setUpFloor(Integer upFloor)
    {
        this.upFloor = upFloor;
    }

    public Integer getDownFloor()
    {
        return downFloor;
    }

    public void setDownFloor(Integer downFloor)
    {
        this.downFloor = downFloor;
    }

    public float getHeight()
    {
        return height;
    }

    public void setHeight(float height)
    {
        this.height = height;
    }

    public float getFloorArea()
    {
        return floorArea;
    }

    public void setFloorArea(float florArea)
    {
        this.floorArea = florArea;
    }

    public String getPropertyUnit()
    {
        return propertyUnit;
    }

    public void setPropertyUnit(String propertyUnit)
    {
        this.propertyUnit = propertyUnit;
    }

    public String getPropertyNo()
    {
        return propertyNo;
    }

    public void setPropertyNo(String propertyNo)
    {
        this.propertyNo = propertyNo;
    }

    public Date getCompDate()
    {
        return compDate;
    }

    public void setCompDate(Date compDate)
    {
        this.compDate = compDate;
    }

    public String getUsage()
    {
        return usage;
    }

    public void setUsage(String usage)
    {
        this.usage = usage;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public Integer getUpSeats()
    {
        return upSeats;
    }

    public void setUpSeats(Integer upSeats)
    {
        this.upSeats = upSeats;
    }

    public Integer getDownSeats()
    {
        return downSeats;
    }

    public void setDownSeats(Integer downSeats)
    {
        this.downSeats = downSeats;
    }

    public String getLongitude()
    {
        return longitude;
    }

    public void setLongitude(String longitude)
    {
        this.longitude = longitude;
    }

    public String getLatitude()
    {
        return latitude;
    }

    public void setLatitude(String latitude)
    {
        this.latitude = latitude;
    }
}
